.class Lcom/estrongs/fs/impl/usb/f$a;
.super Landroid/content/BroadcastReceiver;
.source "UsbMassStorageDevice.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/fs/impl/usb/f;->a(Lcom/estrongs/fs/impl/usb/f$d;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/fs/impl/usb/f;


# direct methods
.method constructor <init>(Lcom/estrongs/fs/impl/usb/f;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/fs/impl/usb/f$a;->a:Lcom/estrongs/fs/impl/usb/f;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 2
    .annotation build Landroid/annotation/TargetApi;
        value = 0xc
    .end annotation

    .line 1
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object p1

    const-string v0, "com.estrongs.fs.impl.usb.USB_PERMISSION"

    .line 2
    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const-string p1, "device"

    .line 3
    invoke-virtual {p2, p1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object p1

    check-cast p1, Landroid/hardware/usb/UsbDevice;

    if-eqz p1, :cond_0

    .line 4
    invoke-virtual {p1}, Landroid/hardware/usb/UsbDevice;->getDeviceId()I

    move-result p1

    iget-object v0, p0, Lcom/estrongs/fs/impl/usb/f$a;->a:Lcom/estrongs/fs/impl/usb/f;

    invoke-static {v0}, Lcom/estrongs/fs/impl/usb/f;->f(Lcom/estrongs/fs/impl/usb/f;)Landroid/hardware/usb/UsbDevice;

    move-result-object v0

    invoke-virtual {v0}, Landroid/hardware/usb/UsbDevice;->getDeviceId()I

    move-result v0

    if-ne p1, v0, :cond_0

    iget-object p1, p0, Lcom/estrongs/fs/impl/usb/f$a;->a:Lcom/estrongs/fs/impl/usb/f;

    invoke-static {p1}, Lcom/estrongs/fs/impl/usb/f;->g(Lcom/estrongs/fs/impl/usb/f;)Lcom/estrongs/fs/impl/usb/f$d;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 5
    iget-object p1, p0, Lcom/estrongs/fs/impl/usb/f$a;->a:Lcom/estrongs/fs/impl/usb/f;

    invoke-static {p1}, Lcom/estrongs/fs/impl/usb/f;->g(Lcom/estrongs/fs/impl/usb/f;)Lcom/estrongs/fs/impl/usb/f$d;

    move-result-object p1

    const/4 v0, 0x0

    const-string v1, "permission"

    invoke-virtual {p2, v1, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p2

    invoke-interface {p1, p2}, Lcom/estrongs/fs/impl/usb/f$d;->a(Z)V

    :cond_0
    return-void
.end method
